/* 
 * Copyright TLR Team, Inc. All Rights Reserved.
 */
TLR.$ngApp.config(function ($routeProvider) {
    $routeProvider
    .when("/devices", {
        templateUrl: "app/mvp/template/view/devices.html",
        controller: "DevicesViewCtrl"
    })
    .when("/air-measure", {
        templateUrl: "app/mvp/template/view/devices/air-measure.html",
        controller: "DevicesAirMeasureViewCtrl"
    })
    .when("/air-measure-bind", {
        templateUrl: "app/mvp/template/view/devices/air-measure-bind.html",
        controller: "DevicesAirMeasureBindCtrl"
    })
    .when("/air-measure-bind-edit", {
        templateUrl: "app/mvp/template/view/devices/air-measure-bind-edit.html",
        controller: "DevicesAirMeasureBindCtrl"
    })
    .when("/air-purifier", {
        templateUrl: "app/mvp/template/view/devices/air-purifier.html",
        controller: "DevicesAirPurifierViewCtrl"
    })
    .when("/air-purifier-bind", {
        templateUrl: "app/mvp/template/view/devices/air-purifier-bind.html",
        controller: "DevicesAirPurifierBindCtrl"
    })
    .when("/air-purifier-bind-edit", {
        templateUrl: "app/mvp/template/view/devices/air-purifier-bind-edit.html",
        controller: "DevicesAirPurifierBindCtrl"
    })
    .when("/air-percolator", {
        templateUrl: "app/mvp/template/view/devices/air-percolator.html",
        controller: "DevicesAirFilterViewCtrl"
    })
    .when("/air-device-menu", {
        templateUrl: "app/mvp/template/view/devices/air-device-menu.html",
        controller: "DevicesAirMeasureViewCtrl"
    })
    .when("/air-measure-history", {
        templateUrl: "app/mvp/template/view/devices/history/air-measure-history.html",
        controller: "AirMeasureHistoryViewCtrl"
    })
    .when("/eban-recorder", {
        templateUrl: "app/mvp/template/view/devices/eban-recorder.html",
        controller: "EbanRecorderViewCtrl"
    })
    .when("/eban-current", {
        templateUrl: "app/mvp/template/view/devices/eban-current.html",
        controller: "EbanCurrentDayDetailViewCtrl"
    })
    .when("/eban-history", {
        templateUrl: "app/mvp/template/view/devices/history/eban-statistic.html",
        controller: "EbanStatisticViewCtrl"
    })
    .when("/eban-bind", {
        templateUrl: "app/mvp/template/view/devices/eban-bind.html",
        controller: "EbanBindCtrl"
    })
    .when("/eban-bind-edit", {
        templateUrl: "app/mvp/template/view/devices/eban-bind-edit.html",
        controller: "EbanBindCtrl"
    })
    .when("/eban-bind-list", {
        templateUrl: "app/mvp/template/view/devices/eban-bind-list.html",
        controller: "EbanBindListCtrl"
    })
    .when("/nav-0", {
        templateUrl: "app/mvp/template/nav-0.html",
        controller: "NavViewCtrl"
    })
    .otherwise({
        redirectTo: '/nav-0'
    });
});

